package cn.changeforyou.web.cloud.auth.dapator;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;

import java.util.List;

/**
 * 适配ReactAdmin的分页
 */
@Data
public class ReactAdminPage<T> {

    public List<T> content;
    public long totalElements;

    public ReactAdminPage(Page<T> page) {
        this.content = page.getRecords();
        this.totalElements = page.getTotal();
    }
}
